<extend name="common/base" />
<block name="resource">
   <link href="__ASSET__/Home/v4/src/css/home.css" rel="stylesheet">
   <link href="__ASSET__/Home/v4/src/css/explore.css" rel="stylesheet">
   <link href="__ASSET__/Home/v4/src/css/user-center.css" rel="stylesheet">
   <link href="__ASSET__/Home/v4/src/css/user_fans.css" rel="stylesheet">
   <style>
     .mine a{
           border-right:none;
     }
     .user-center-main{
           overflow:hidden;
     }
     .btn-new-primary,.btn-new-primary:hover{
          background:#349ff9;
          color:#fff;
     }
   </style>
</block>
<block name="content">
          <!--中间位置-->
    <div class="main container">
        <div class="user-center-main white-bg gray-border marginb20">
            <!--左边板块-->
            <include file="Ucenter/baseinfo" />
            <!--右边板块-->
            <div class="user-main-right">
                <div class="scroll_area">
	                <div class="right_area_title">
	                          <div class="left l_title">粉丝 <span style="font-size:13px;color:#666;">({$user.statis.fans|default=0})</span></div>
	                </div>
                    <!-- 显示粉丝 -->
                    <div class="fans_area">
                         <form class="form-inline" role="form" action="/my-fans" method="get">
	                    	 <div class="form-group" style="margin-top:20px;">
	                    		<input type="text" class="form-control nickname" value="{$nickname}" name="nickname" placeholder="请输入昵称">
	                    		<button type="submit" class="btn btn-new-primary">搜索</button>
	                    	</div>
                    	</form>
                        <notempty name="fans_list">
                            <ul class="fan_ul">
                            	<volist name="fans_list" id="fans">
                                    <include file="Ucenter/fansTemplate" />
                                </volist>
                            </ul>
                         </notempty>
                         <div class="page">
                                  <ul>
                                  </ul>
                          </div>
                          <div class="load-more" style="display:none;">
                             <i><img src="__ASSET__/Home/v4/src/images/loading-white.gif" alt="正在加载，请稍候..."/></i>
                             <span>正在加载，请稍候...</span>
                          </div>
                          <empty name="fans_list">
                              <div class="empty_favour" style="margin-top:240px;">
                                  <div class="empty_favour_icon"></div>
                                   <p  class="is_favour">暂时还没有粉丝</p>
                              </div>
                          </empty>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="footer"></block>
<block name="component">
    <script src="__ASSET__/Home/v4/dist/js/set_common_bg.js?v=1.0"></script>
    <script src="__ASSET__/Home/v4/src/js/fans_common.js?v=1.0"></script>
    <script>
        window._THIS = {
            search_url : '/my-fans', // 
            list_url : '/my-fans?nickname={$nickname}',
            p : {$page|default=1},
            pager : {$pager|default=10},
            total : {$fansCount|default=0},
            removeFansUrl : "{:U('follow/removeFans')}", // uid
            unfollow:"{:U('Home/follow/unfollow')}",
            dofollow:"{:U('Home/follow/dofollow')}",
        };
        $(function(){
        	  tool.setHeight();
        })
        $(document).on('click',function(){
               $('.alert_window_option').hide();
        })
    </script>
</block>